package com.books.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.books.vo.Book;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface IBookService extends IService<Book> {
    List<Book> getAll();
    List<Book> getPage_2(Integer c, Integer s);
    IPage<Book> getPage_1(Integer c, Integer s);

    //条件查询图书属性
    IPage<Book> getPageTpye(Integer c, Integer s, Integer type);

    //条件查询图书名字
    IPage<Book> getPageName(Integer c, Integer s, String name);

    //添加图书
    Boolean addBook(Book book);

    //删除图书
    Boolean deleBook(int id);

    //更新图书
    Boolean updateBook(Book book);

}
